<?php //自定义路由
Route::all('/', function () {
    $execute_time = sys_over_time();
    $msg = "<h1 style='text-align: center;margin-top: 5%;'>欢迎使用wekcms内容管理系统!</h1><p style='text-align: center;'>程序执行时间：{$execute_time}秒</p>
    <p style='text-align: center;'><a href='https://gitee.com/wekyun/wekcms/stargazers'><img src='https://gitee.com/wekyun/wekcms/badge/star.svg?theme=dark' alt='star'></img></a></p>";
    echo $msg;
})->RouteStop(function () {
//        dd('路由拦截器');
});


Route::get('wek', 'app\modules\content\content@wek');
Route::get('column_all', 'app\modules\content\content@column_all');


#分组路由,分组路由不支持分组嵌套
Route::group('wek', 'app\modules\content\content', function () {
    Route::get('/closure', function () {
        dd('闭包分组路由');
    })->RouteStop(['user.auth1','user.auth2']);
    Route::get('/wek', '@wek')->RouteStop(function () {
        dd('路由拦截器');
    });
    Route::get('/wek2', '@wek');

})->GroupStop(['user.auth3','user.auth4']);


